package com.vencent.spring.web;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@RequestMapping()
public class ToysController {
	
	private String name;
	
	public ToysController(String name) {
		super();
		this.name = name;
	}

	@ResponseBody
	@RequestMapping("/toys")
	public String play() {
		System.out.println(name);
		return name;
	}
}
